#pragma once

enum OpenMode{
	FO_READ,
	FO_WRITE
};
enum FILEPOS{
	F_BEGIN,
	F_CURRENT,
	F_END
};
typedef void *VFILE;

VFILE os_Open(const char *filename, OpenMode mode);

bool os_Read(VFILE handle, void *buffer, unsigned int readlen);

bool os_Write(VFILE handle, void *buffer, unsigned int readlen);

void os_Seek(VFILE handle, __int64 offset, FILEPOS origin);

__int64 os_Getsize(VFILE handle);

void os_Close(VFILE handle);